import request from '@/utils/request'

// 查询辅助耗材列表
export function listAuxiliaryConsumables(query) {
  return request({
    url: '/erp/auxiliaryConsumables/list',
    method: 'get',
    params: query
  })
}

// 查询辅助耗材详细
export function getAuxiliaryConsumables(id) {
  return request({
    url: '/erp/auxiliaryConsumables/' + id,
    method: 'get'
  })
}

// 新增辅助耗材
export function addAuxiliaryConsumables(data) {
  return request({
    url: '/erp/auxiliaryConsumables',
    method: 'post',
    data: data
  })
}

// 修改辅助耗材
export function updateAuxiliaryConsumables(data) {
  return request({
    url: '/erp/auxiliaryConsumables',
    method: 'put',
    data: data
  })
}

// 删除辅助耗材
export function delAuxiliaryConsumables(id) {
  return request({
    url: '/erp/auxiliaryConsumables/' + id,
    method: 'delete'
  })
}
